function Registration() {
   
    var dialog = null;
    
    var loaded = false;
    
    function renderDialog(data) {
      dialog = new YAHOO.widget.Panel("registration",
                                      { 
                                        visible : false, 
                                        draggable : true, 
                                        close : true,
                                        fixedcenter : true, 
                                        effect:[{ 
                                                effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}
                                               ]} 
                                     );
          dialog.setHeader("Registration");
          dialog.setBody(data);
          dialog.render(document.body);
   }


   var show = function() {
       if (! loaded) {
            registrationController.getRegistrationView({ callback: registrationCallback });
            return;
       }
       dialog.show();
   }
   
   function registrationCallback(data) {
      renderDialog(data);
      dialog.show();
   }
   
   return 
      {
        show : LazyProxy.loadOnce([   "dwr/engine.js",
                                      "dwr/interface/registrationController.js"
                                  ], show)
      };
}